\documentclass[tikz,border=2mm]{standalone}
\usepackage{array,amsmath,mathptmx,xcolor,bbding,pifont,colortbl,amssymb}
\usepackage[UTF8]{ctex}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
% 只需要这个就可以
\usepackage[thicklines]{cancel}

% 可以设置线条颜色，默认是黑色
\usepackage{xcolor}
\renewcommand{\CancelColor}{\color{red}} 
\usepackage{tikz-cd}
\usepackage{tikz,graphicx,subfig,caption,diagbox} % Required for drawing custom shapes
\usetikzlibrary{fit,matrix,chains,arrows,shapes,positioning,arrows.meta,chains,shadows,shapes.callouts,decorations.text,shapes.symbols,shapes.misc, positioning,decorations.pathreplacing,calc}
% 图边框颜色
\arrayrulecolor{blue}
% 设置浅蓝色
\definecolor{lightblue1}{RGB}{175, 175, 237}
\definecolor{lightgreen1}{RGB}{226, 246, 186}
% 设定删除线颜色
\renewcommand{\CancelColor}{\color{red}}

\begin{document}
	\begin{tikzpicture}[>=latex,every node/.style={anchor=south west,,inner sep=0,fill=white}]
		\renewcommand{\arraystretch}{1.3}
		
		%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
		\node[drop shadow, fill=white] at (5em,0) (SYNBL){
			\begin{tabular}{|l|C{2em}|r|C{10em}|}
				\hline
				\color{blue}分析栈 & \color{blue}w & \color{blue}剩余串 & \color{blue}操作 \\ \hline
				\color{blue}\#0 & \color{blue}a & \color{blue}bccd\# & \color{blue}PUSH(a2),NEXT(w) \\ \hline
				\color{blue}\#0 a2 & \color{blue}b & \color{blue}ccd\# & \color{blue}PUSH(b9),NEXT(w) \\ \hline
				\color{blue}\#0 a2 b9 & \color{blue}c & \color{blue}cd\# & \color{blue}PUSH(c11),NEXT(w) \\ \hline
				\color{blue}\#0 a2 b9 \color{red}c11 & \color{blue}c & \color{blue}d\# & \color{red}REDUCE(5) \\ \hline
				\color{blue}\#0 a2 \color{red}b9 B10 & \color{blue}c & \color{blue}d\# & \color{red}REDUCE(4) \\ \hline
				\color{blue}\#0 a2 B3 & \color{blue}c & \color{blue}d\# & \color{blue}PUSH(c8),NEXT(w) \\ \hline
				\color{blue}\#0 a2 B3 \color{red}c8 & \color{blue}d & \color{blue}\# & \color{red}REDUCE(3) \\ \hline
				\color{blue}\#0 \color{black}a2 B3 A4 & \color{blue}d & \color{blue}\# & \color{blue}PUSH(d5),NEXT(w) \\ \hline
				\color{blue} \#0 \color{red}a2 B3 A4 d5 & \color{blue}\# & ~ & \color{red}REDUCE(1) \\ \hline
				\color{blue}\#0 Z1 & \color{blue}\# & ~ & \color{red}OK \\ \hline
			\end{tabular}
			
		};
	\end{tikzpicture}
\end{document}